# -*- coding: UTF-8 -*-
#coding=utf-8
import TravelDir
from PIL import Image
import os
import ImageProcess
import sys
if __name__ == '__main__':
    fileAllNames = TravelDir.travelDir('D:\\tu\\') #图片目录路径
    fileAllNames = TravelDir.filter(fileAllNames,[".JPG",".jpg",".png","jpeg"])
    for fileAllName in fileAllNames:
        ImageProcess.resize_image(fileAllName,new_height=640) #图片尺寸参数

